package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.MallUserPropsRewards;
import com.sc.nft.entity.vo.UserPropsRewardsSummaryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

@Mapper
public interface MallUserPropsRewardsMapper extends BaseMapper<MallUserPropsRewards> {


    /**
     * 查询用户道具奖励汇总数据
     */
    UserPropsRewardsSummaryVO getSummary(@Param("startTime") Date startTime,
                                         @Param("endTime") Date endTime,
                                         @Param("userId") Long userId,
                                         @Param("propsIds") List<Long> propsIds);


    List<MallUserPropsRewards> selectByLastMinId(@Param("lastMinId") Long lastMinId,
                                                 @Param("pageSize") int pageSize,
                                                 @Param("startTime") Date startTime);
}